import { requestClient } from '#/api/request';

interface Response {
  List: {
    content: string;
    id: number;
    platform: string;
    timestamp: string;
    uid: string;
  };
}
/**
 * 获取用户信息
 */
export async function getLogListApi(params: any) {
  return requestClient.get<Response['List']>('/errlog', { params });
}

/** 获取 open orders */
export function reqOrderList(params: any) {
  return requestClient.get('/order', { params });
}

/** 获取 交易结果 */
export function reqTradeList(params: any) {
  return requestClient.get('/trade', { params });
}

/** 撤单 */

export async function reqCancelOrder(data: any) {
  return requestClient.post('/cancelAll', data);
}
